package com.travel.entity;

import org.springframework.stereotype.Component;

@Component
public class TCollection   {
  private int collectionId;
  private TUser user;
  private TAttractions attractions;

  public TCollection() {
  }

  public TCollection(int collectionId, TUser user, TAttractions attractions) {
    this.collectionId = collectionId;
    this.user = user;
    this.attractions = attractions;
  }

  public int getCollectionId() {
    return collectionId;
  }

  public void setCollectionId(int collectionId) {
    this.collectionId = collectionId;
  }

  public TUser getUser() {
    return user;
  }

  public void setUser(TUser user) {
    this.user = user;
  }

  public TAttractions getAttractions() {
    return attractions;
  }

  public void setAttractions(TAttractions attractions) {
    this.attractions = attractions;
  }

  @Override
  public String toString() {
    return "TCollection{" +
            "collectionId=" + collectionId +
            ", user=" + user +
            ", attractions=" + attractions +
            '}';
  }
}
